<!DOCTYPE html>
<html>
<head>
  
    <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/bootstrap.min.css" />
     <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/ui.css" />
      <link rel="stylesheet" type="text/css" href="__ADMIN__/Css/Admin-default.css" />
  
</head>
<body>
<div class="page-content-wrap">
                    <div class="row">
                        <div class="col-md-12">
                            <div class="panel panel-default">
                                <div class="panel-body">
<form action="{:U('company/coupondelete')}" method="post">
 <input type="hidden" name="company_id" value="{$company_id}">
<div class="table-tools">
    <button type="submit" class="btn btn-primary" title="删除勾选的优惠券"><i class="glyphicon glyphicon-remove"></i> 删 除 </button>
    <a href="{:U('company/couponadd', array('id' => $company_id))}" class="btn btn-info" title="添加优惠券"><i class="fa fa-copy"></i> 添 加 </a>
  
    <p>优惠券列表</p>
</div>

<table id="questionnaire-table" class="table table-striped table-hover table-condensed datatable">
    <thead>
        <tr>
            <th>序号</th>
            <th>名称</th>
            <th>简介</th>
            <th>开始 时间</th>
            <th>过期时间</th>
            <th>是否可用</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    	<volist name="info" id="vo">
    		<tr>
    			<td><input name='id[]' type="checkbox" value="{$vo.id}" /> {$i}</td>
    			<td class="questionnaire_name">{$vo.value}</td>
    			<td class="questionnaire_name">{$vo.context}</td>
    			<td class="questionnaire_name">{$vo.btime|date=('Y年m月d日'),###}</td>
    			<td class="questionnaire_name">{$vo.etime|date=('Y年m月d日'),###}</td>
    			<td class="questionnaire_desc"><if condition="($vo.used eq 0)">可用<else />已发放</if></td>
    			<td>
                    <a href="{:U('company/coupondelete', array('id' => $vo['id'],'company_id'=>$company_id))}" class="btn btn-danger btn-rounded btn-condensed btn-sm" title="删除问卷"><span class="fa fa-times"></span></a>
    			</td>
    		</tr>
    	</volist>
    </tbody>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>